<!DOCTYPE html>
<html>
	<head>
	<%@ page pageEncoding  = "UTF-8" %>
	<%@ page import = "java.util.*,com.tk.entity.*,com.tk.servlet.*" %>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../css/manage12.css" />
		<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
		<script type="text/javascript" src="../js/getBodyWidAndHei.js" ></script>
		<script src="../js/turnUp.js"></script>
		<script type="text/javascript" src="../js/time.js" ></script>
		
        <!--<script type="text/javascript" charset="utf-8" src="ueditor/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="ueditor/ueditor.all.min.js"></script>
		<script type="text/javascript" charset="utf-8" src="ueditor/lang/zh-cn/zh-cn.js"></script>-->
		
		
	</head>
	<body onload="getNowFormatDate()">
	<%
		Hero hero = (Hero)request.getSession().getAttribute("hero");
  		request.setCharacterEncoding("UTF-8");
  		Page pages = (Page)request.getAttribute("page");
  		List<Post> posts = pages.getPosts();
  		
   	%>
		<!--头部部分-->
		<div class="title">
			<div class="date">
				<p></p>
			</div>
			
		</div>
		
		<!--左侧栏-->
		<div class="information">
			<ul>
				<li id="liFirst">
					<div class="headImg">
						<img src="../img/home/普通用户.jpg" />
					</div>
					<div id="myName">
						<p><%= hero.getHname() %></p>
						<br>
						<p>
						<%
							out.print(hero.getPos());
						%>
						</p>
						<br>
						<p><%= hero.getTeam() %></p><br />
					</div>
				</li>
				<li ><a href="PaginationTheme">天下形势</a></li>
				<li class="dropdown" ><a  href="findheroServlet?tog=repos">日理万机</a>
				<div class="dropdown-content">
			        <ul>
			        	<li><a href="findheroServlet?tog=repos">任用罢免</a></li>
			        	<li><a href="findheroServlet?tog=kill">生杀大权</a></li>
			        	<li><a href="manage.html">奖率三军</a></li>
			        	<li><a href="manage.html">调兵遣将</a></li>
			        </ul>
			    </div>
			    </li>
				<li ><a href="">知心交友</a></li>
				<li ><a href="../home/resume.jsp">英雄履历</a></li>
			</ul>
		</div>
		
		<!--论坛中间部分，呈现的是朋友的动态-->
		<div class="friends">
			<div class="friendsLeft">

				<!--动态向上翻转公告-->
				<div class="notice">
					<div class="horn">
					
					</div>
					<div id="divMsg">
						曹操是西园八校尉之一，曾只身行刺董卓， 失败后讨伐董卓。<br/>
					          曹操征河北，昱举羽以敌颜良。<br/>
						典韋迁为都尉<br/>
						幼时往见左中郎将蔡邕，蔡邕见而奇之，倒屣以相迎。<br/>
						单福年少时爱好击剑，后折节向学，游学四方。 <br/>
						黄忠虽年近六旬，却有万夫不当之勇。先主使关羽攻长沙，忠与羽连战三日<br/>
					</div>
					<script type="text/javascript">
						Scroll.element = document.getElementById('divMsg');
						Scroll.start();
					</script>
				</div>
				<!--朋友动态-->
				<!--<div class="otherInfor">-->
					<div class="friendsText">
						<div class="friendsTextH4">
							<h4>朋友动态</h4>
						</div>
						<div class="friendsSelf">
						<%
   							int i;
   							for( i=0;i<posts.size();i++ ){
   								Post post = posts.get(i);
   								int Pos = post.getPosterPos();
   								
    					%>
    					<script>
    					
    					</script>
							<div class="self">
								<div class="selfImg">
									<img src="../img/home/普通用户.jpg">
								</div>
								
								<div class="selfQuestion">
									<p>[<%= post.getPosterName() %>] <a href="PaginationTheme?theme=<%=post.getId() %>" ><%= post.getTitle() %></a></p><br />
									<p><span>发表于 <%= post.getReplyTime() %>  最后回复  <%= post.getLastReply() %></span></p>
								</div>
								<div class="selfNumber">
									<p>
									</p><br />
								</div>
							</div>
						<%
  							}
  			 			%>
						</div>
						<div class="pagesTutn">
							
							<form action="../servlet/PaginationTheme" method="post" >
								<a href="../servlet/PaginationTheme?currentPage=1" >首页</a>
								<a href="../servlet/PaginationTheme?currentPage=<%=pages.getCurrentPage()-1 %>" >上一页</a>
								
								<input type="number" name="currentPage" value=<%=pages.getCurrentPage() %>  /> /<%= pages.getTatalPage() %>
								<input type="submit" valut= "跳转" >
								
								
								<a href="../servlet/PaginationTheme?currentPage=<%=pages.getCurrentPage()+1 %>" >下一页</a>
								<a href="../servlet/PaginationTheme?currentPage=<%=pages.getTatalPage() %>" >尾页</a>
							</form>
							
						</div>					
					</div>
				<!--</div>-->
					<!--论坛右侧部分，是文本编辑器，发表自己动态-->
									
			</div>
			<div class="myText">
					<form action = "../servlet/RealeaseTheme" >
						<div class="myTextButton">
							<input type="submit" value="发帖" >
													
						</div>
						<div class="myTextEr">
							
							<div class="myTextarea">
								<input name="title" type="text" placeholder="主题"/>
								<textarea name="content" rows="" cols="" placeholder="我想说…"></textarea>
							</div>
						</div>
					</form>
			</div>
		</div>
	</body>
</html>
